//
//  LTLoginManager.h
//  LTGameSDK
//
//  Created by admin on 2020/2/16.
//  Copyright © 2020 gnetop. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "LTLoginResponseModel.h"
#import "LTLoginRequestModel.h"
#import "LTGameRoleModel.h"
#import "LTManagerDelegate.h"
#import "LTThirdPlatformModel.h"
#import "LTBaseResponseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface LTLoginManager : NSObject<LTManagerDelegate>

/// 创建单例
+ (instancetype)sharedInstance;
/// LTSDK初始化
/// @param model 存储初始化所需数据
/// @param isDebug 是否为调试模式，是否打印调试信息
/// @param isDev 是否使用测试服接口
- (void)initWithModel:(LTThirdPlatformModel *)model
              isDebug:(BOOL)isDebug
                isDev:(BOOL)isDev;
/// 自动登录
/// @param block 自动登录的回调，返回LTLoginResponseModel对象
- (void)autoLoginWithBlock:(loginBlock)block;
/// 上传游戏角色信息
/// @param gameRoleModel 游戏角色模型
- (void)updateGameRoleInfo:(LTGameRoleModel *)gameRoleModel callback:(void (^)(LTBaseResponseModel *resultModel))callback;
/// 获取邮箱验证码
/// @param email 邮箱地址
- (void)getVerifyCode:(NSString *)email resultBlock:(void (^)(NSMutableDictionary *resultDict))callback;
- (void)application:(UIApplication *)app openURL:(NSURL *)url ptions:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options;
/// Facebook应用统计激活
- (void)activateFacebookEvents;

- (void)closeUILocalication;
@end
NS_ASSUME_NONNULL_END
